package roboProject.functionLibrary;

public class FunctionLibrary {
	public static byte[] intToByteArray(int number){
		byte[] data = new byte[4];
		for (int i = 0; i < 4; ++i) {
		    int shift = i << 3; // i * 8
		    data[3-i] = (byte)((number & (0xff << shift)) >>> shift);
		}
		return data;
	}
}
